package com.gitee.jmliu1983.finacehelper.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
//import com.ruoyi.common.core.annotation.Excel;
//import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;


/**
 * 美元理财对象 transactions_usd_rmb
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public class TransactionsUsdRmb extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易唯一标识 */
    private Long transactionId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 账户id */
    @Excel(name = "账户id")
    private Long accountId;

    /** 产品id */
    @Excel(name = "产品id")
    private String productId;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "确认时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmDate;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String type;

    /** 汇率 */
    @Excel(name = "汇率")
    private BigDecimal price;

    /** 美元数 */
    @Excel(name = "美元数")
    private BigDecimal quantity;

    /** RMB额度 */
    @Excel(name = "RMB额度")
    private BigDecimal amount;

    /** 手续费 */
    @Excel(name = "手续费")
    private BigDecimal fee;

    /** 价格日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "价格日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date priceDate;

    /** 与哪个账户交易 */
    @Excel(name = "与哪个账户交易")
    private String transWith;

    /** 注释 */
    @Excel(name = "注释")
    private String comment;

    public void setTransactionId(Long transactionId) 
    {
        this.transactionId = transactionId;
    }

    public Long getTransactionId() 
    {
        return transactionId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }
    public void setConfirmDate(Date confirmDate) 
    {
        this.confirmDate = confirmDate;
    }

    public Date getConfirmDate() 
    {
        return confirmDate;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setFee(BigDecimal fee) 
    {
        this.fee = fee;
    }

    public BigDecimal getFee() 
    {
        return fee;
    }
    public void setPriceDate(Date priceDate) 
    {
        this.priceDate = priceDate;
    }

    public Date getPriceDate() 
    {
        return priceDate;
    }
    public void setTransWith(String transWith) 
    {
        this.transWith = transWith;
    }

    public String getTransWith() 
    {
        return transWith;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("transactionId", getTransactionId())
            .append("userId", getUserId())
            .append("accountId", getAccountId())
            .append("productId", getProductId())
            .append("submitTime", getSubmitTime())
            .append("confirmDate", getConfirmDate())
            .append("type", getType())
            .append("price", getPrice())
            .append("quantity", getQuantity())
            .append("amount", getAmount())
            .append("fee", getFee())
            .append("priceDate", getPriceDate())
            .append("transWith", getTransWith())
            .append("comment", getComment())
            .toString();
    }
}
